export const optionParent = {
    height:'auto',
    calcHeight: 30,
    tip: false,
    searchShow: true,
    border: true,
    viewBtn: true,
    index:true,
    indexLabel:"序号",
    dialogClickModal: false,
    labelWidth:120,
    align:"center",
    column: [
      {
        label: "账户名称",
        prop: "acctName",
        rules: [{
          required: true,
          message: "请输入账户名称",
          trigger: "blur"
        }]
      },
      {
        label: "账户别名",
        prop: "acctAlias",
        rules: [{
          required: true,
          message: "请输入账户别名",
          trigger: "blur"
        }]
      },
      {
        label: "打款银行账号",
        prop: "acctNo",
        minWidth:90,
        rules: [{
          required: true,
          message: "请输入打款银行账号",
          trigger: "blur"
        }]
      },
      {
        label: "商户",
        prop: "merchantId",
        type:"select",
        search:true,
        hide:true,
        editDisplay:false,
        filterable:true,
        dicUrl:"/api/merchant-bmg/merchant/list?current=1&size=100&merchantStatus=OPEN",
        dicMethod:'get',
        props:{
          label:"merchantName",
          value:"id",
          res:"data.records"
        },
        rules: [{
          required: true,
          message: "请选择商户",
          trigger: "blur"
        }]
      },
      {
        label: "商户名称",
        prop: "merchantName",
        addDisplay:false,
        editDisabled:true,
        rules: [{
          required: true,
          message: "请输入商户名称",
          trigger: "blur"
        }]
      },
      {
        label: "余额",
        prop: "balance",
        addDisplay:false,
        editDisplay:false,
        rules: [{
          required: true,
          message: "请输入余额",
          trigger: "blur"
        }]
      },
      {
        label: "状态",
        prop: "inventoryStatus",
        type:"select",
        search:true,
        dicUrl:"/api/blade-system/dict-biz/dictionary?code=MERCHANT_ADVANCE_INVENTORY_STATUS",
        dicMethod:'get',
        props:{
          label:"dictValue",
          value:"dictKey"
        },
        rules: [{
          required: true,
          message: "请选择状态",
          trigger: "blur"
        }]
      },
    ]
  }


  export const optionChild = {
    align:"center",
    column: [
        {
          label: "交易类型",
          prop: "type",
          type:"select",
          dicUrl:"/api/blade-system/dict-biz/dictionary?code=MERCHANT_TRANS_TYPE",
          dicMethod:'get',
          props:{
            label:"dictValue",
            value:"dictKey"
          },
          rules: [{
            required: true,
            message: "请选择交易类型",
            trigger: "blur"
          }]
        },
        {
            label: "交易金额",
            prop: "amount",
            type:"number",
            precision:2,
            minRows:0,
            tip:"金额请输入数字，只精确到小数点后两位",
            tipPlacement:"top",
            rules: [{
                required: true,
                message: "请输入交易金额",
                trigger: "blur"
            }]
        },
        {
          label: "流水号",
          prop: "serialNumber",
        },
      ]
  } 